package leetcode.bit;

import leetcode.bit.common.BitUtils;

import java.util.Arrays;

class Solution338 {
    public int[] countBits(int n) {
        return BitUtils.countBits(n);
    }
}

public class leetcode338 {
    public static void main(String[] args) {
        Solution338 solution338 = new Solution338();
        System.out.println(Arrays.toString(solution338.countBits(0)));
        System.out.println(Arrays.toString(solution338.countBits(1)));
        System.out.println(Arrays.toString(solution338.countBits(2)));
        System.out.println(Arrays.toString(solution338.countBits(5)));
        System.out.println(Arrays.toString(solution338.countBits(20)));
    }
}
